/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author Rainbow
 */
public class OperationLog
{
    static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    private final SimpleStringProperty date = new SimpleStringProperty();
    private final SimpleStringProperty station = new SimpleStringProperty();
    private final SimpleStringProperty system = new SimpleStringProperty();
    private final SimpleStringProperty desc = new SimpleStringProperty();

    public OperationLog(Date date,String station,String system,String desc)
    {
        this.setDate(sdf.format(date));
        this.setStation(station);
        this.setSystem(system);
        this.setDesc(desc);
    }

    

    public String getStation()
    {
        return station.get();
    }

    public void setStation(String station)
    {
        this.station.set(station);
    }

    public String getSystem()
    {
        return system.get();
    }

    public void setSystem(String system)
    {
        this.system.set(system);
    }

    public String getDesc()
    {
        return desc.get();
    }

    public void setDesc(String desc)
    {
        this.desc.set(desc);
    }

    public String getDate()
    {
        return this.date.get();
    }
    
    public void setDate(String date)
    {
        this.date.set(date);
    }
    
}
